import request from '@/utils/request'

// 查询列表信息
export function getFAExchangeList(query) {
  return request({
    url: '/md/cardDispatch/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function FAExchangeDetail(cardId) {
  return request({
    url: '/md/cardDispatch/' + cardId,
    method: 'get'
  })
}

// 新增
export function addFAExchange(data) {
  return request({
    url: '/md/cardDispatch',
    method: 'post',
    data: data
  })
}

// 修改
export function updateFAExchange(data) {
  return request({
    url: '/md/cardDispatch',
    method: 'put',
    data: data
  })
}

// 删除
export function delFAExchange(cardId) {
  return request({
    url: '/md/cardDispatch/' + cardId,
    method: 'delete'
  })
}

// 修改状态
export function changeFAExchangeStatus(data) {
  return request({
    url: '/md/cardDispatch/updateStatus',
    method: 'put',
    data: data
  })
}